<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
    <style>
        .outer {
            border: 1px solid red;
            height: 200px;
            width: 200px;

            padding-top: 20px;
            padding-left: 20px;
            padding-right: 20px;
            /*padding-bottom: 20px;*/

            /*padding:20px ;四周边距20像素*/

            /*padding: 20px 18px 21px 19px;分别对应上右下左四边距*/
        }
    </style>
</head>
<body>
<div class="outer">
    <div style="background-color: gold;">听妈妈的话</div>
    <div>
        别让她受伤
    </div>
</div>
</body>
</html>